<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>popot-2.01: popot::Vector Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">popot-2.01
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacepopot.html">popot</a>      </li>
      <li class="navelem"><a class="el" href="classpopot_1_1Vector.html">Vector</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">popot::Vector Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="popot::Vector" -->
<p>The template parameters is the type of values (e.g. double, or bool)  
 <a href="classpopot_1_1Vector.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="individuals_8h_source.html">individuals.h</a>&gt;</code></p>

<p><a href="classpopot_1_1Vector-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a10db4d32978788f19aeb930ae7c7ba9c">Vector</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a1a331b91e1609b67e7324ffdfad9bc94">Vector</a> (size_t dimension)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a6de5f7bc7288d6b2efc3e5b135f166e7">Vector</a> (const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a512e762c4f86b77533513bd7b429a27f">operator=</a> (const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#ab96675e080080246554a2579fde88032">~Vector</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">VALUE_TYPE &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a906b652dbd5185b43b6c464d48a042ee">operator[]</a> (size_t index) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#afccfb7d72c4e4255e7ef6e0a5b713e76">size</a> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">VALUE_TYPE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#aa74fc0320c51efea093baeafb62a9c21">getValuesPtr</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a6d3cb96a58935fafa1020b7b5704effe">print</a> (std::ostream &amp;os) const </td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a9630b07a8856a54b94d940083124a720">_dimension</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">VALUE_TYPE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#a979e31d6c076bf2fe387393407e191dd">_values</a></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1Vector.html#ac254b27efeb8486ee2f67821e3a21a60">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;v)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The template parameters is the type of values (e.g. double, or bool) </p>
<p>Basic type representing a position in a search space </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a10db4d32978788f19aeb930ae7c7ba9c"></a><!-- doxytag: member="popot::Vector::Vector" ref="a10db4d32978788f19aeb930ae7c7ba9c" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">popot::Vector::Vector </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor, dimension=0 is assumed </p>

</div>
</div>
<a class="anchor" id="a1a331b91e1609b67e7324ffdfad9bc94"></a><!-- doxytag: member="popot::Vector::Vector" ref="a1a331b91e1609b67e7324ffdfad9bc94" args="(size_t dimension)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">popot::Vector::Vector </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>dimension</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor </p>

</div>
</div>
<a class="anchor" id="a6de5f7bc7288d6b2efc3e5b135f166e7"></a><!-- doxytag: member="popot::Vector::Vector" ref="a6de5f7bc7288d6b2efc3e5b135f166e7" args="(const Vector &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">popot::Vector::Vector </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy constructor </p>

</div>
</div>
<a class="anchor" id="ab96675e080080246554a2579fde88032"></a><!-- doxytag: member="popot::Vector::~Vector" ref="ab96675e080080246554a2579fde88032" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual popot::Vector::~Vector </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa74fc0320c51efea093baeafb62a9c21"></a><!-- doxytag: member="popot::Vector::getValuesPtr" ref="aa74fc0320c51efea093baeafb62a9c21" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VALUE_TYPE* popot::Vector::getValuesPtr </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pointer to the raw data </p>

</div>
</div>
<a class="anchor" id="a512e762c4f86b77533513bd7b429a27f"></a><!-- doxytag: member="popot::Vector::operator=" ref="a512e762c4f86b77533513bd7b429a27f" args="(const Vector &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpopot_1_1Vector.html">Vector</a>&amp; popot::Vector::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy Constructor </p>

</div>
</div>
<a class="anchor" id="a906b652dbd5185b43b6c464d48a042ee"></a><!-- doxytag: member="popot::Vector::operator[]" ref="a906b652dbd5185b43b6c464d48a042ee" args="(size_t index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VALUE_TYPE&amp; popot::Vector::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a ref to a component of the vector </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>position </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6d3cb96a58935fafa1020b7b5704effe"></a><!-- doxytag: member="popot::Vector::print" ref="a6d3cb96a58935fafa1020b7b5704effe" args="(std::ostream &amp;os) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void popot::Vector::print </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints the current position + fitness </p>

<p>Reimplemented in <a class="el" href="classpopot_1_1ABC_1_1individuals_1_1FoodSource.html#abf22131db51e548dddcfdf8b0a205c54">popot::ABC::individuals::FoodSource</a>.</p>

</div>
</div>
<a class="anchor" id="afccfb7d72c4e4255e7ef6e0a5b713e76"></a><!-- doxytag: member="popot::Vector::size" ref="afccfb7d72c4e4255e7ef6e0a5b713e76" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t popot::Vector::size </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the size of the vector </p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ac254b27efeb8486ee2f67821e3a21a60"></a><!-- doxytag: member="popot::Vector::operator&lt;&lt;" ref="ac254b27efeb8486ee2f67821e3a21a60" args="(std::ostream &amp;os, const Vector &amp;v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classpopot_1_1Vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Serialization operator, for display, based on the print method to modify the display of derived class, just overload the print method </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a9630b07a8856a54b94d940083124a720"></a><!-- doxytag: member="popot::Vector::_dimension" ref="a9630b07a8856a54b94d940083124a720" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpopot_1_1Vector.html#a9630b07a8856a54b94d940083124a720">popot::Vector::_dimension</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a979e31d6c076bf2fe387393407e191dd"></a><!-- doxytag: member="popot::Vector::_values" ref="a979e31d6c076bf2fe387393407e191dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VALUE_TYPE* <a class="el" href="classpopot_1_1Vector.html#a979e31d6c076bf2fe387393407e191dd">popot::Vector::_values</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/opt/GoogleCode/popot/trunk/popot-2.01/src/<a class="el" href="individuals_8h_source.html">individuals.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>

</body>
</html>
